package com.example.owner.bean.impl;

import com.example.owner.bean.Engine;
import io.micronaut.context.annotation.Bean;
import jakarta.inject.Singleton;

@Singleton
@Bean(typed = Engine.class)
public class V6Engine implements Engine {  // (2)
    @Override
    public String start() {
        return "Starting V8";
    }

    @Override
    public int getCylinders() {
        return 8;
    }
}